package ObjectDemo1;

import java.util.Arrays;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 阿宾
 * Date: 2024-10-17
 * Time: 15:38
 */
public class Person {
    public int age;
    public String name;
    public int[] data;

    public Person() {
    }

    public Person(int age, String name, int[] data) {
        this.age = age;
        this.name = name;
        this.data = data;
    }

    @Override
    public String toString() {
        return "Person{" +
                "age=" + age +
                ", name='" + name + '\'' +
                ", data=" + Arrays.toString(data) +
                '}';
    }

}
